
SHELL=/bin/bash
HDRDIR = ./inc/
SRCDIR = ./src/
SRV_HDR = $(HDRDIR)server.h
CLI_HDR = $(HDRDIR)client.h
SRV_SRC = $(SRCDIR)server.c
CLI_SRC = $(SRCDIR)client.c

LIBIMP = 
CLIENT = client
SERVER = server
CFLAGS = -Wall
CC = gcc

all: $(SERVER) $(CLIENT)
	
$(SERVER): $(SRV_SRC)
	$(CC) $(CFLAGS) -I$(HDRDIR) $(SRV_SRC) -o ./$@

$(CLIENT): $(CLI_SRC)
	$(CC) $(CFLAGS) -I$(HDRDIR) $(CLI_SRC) -o ./$@

runserver: all
	./server

tarball: clean
	tar czf Meyers_Grant_a7.tar.z *

clean:
	-rm -f $(CLIENT) $(SERVER) *~ ./src/*~ ./inc/*~ 
	